﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZHDJ.Core.Util;
using ZHDJ.WebPage;

namespace ZHDJ.Web
{
    public partial class ExamSystemLogin : DBPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckLogin(true);
            //var url = WebHost+"/Exam/FrmOtherLogin.aspx?UserID={0}&ValiCode={1}";

            //Response.Redirect(string.Format(url,CurrentUser.UserNo, GetValiCode(CurrentUser.UserNo)));
            //Response.Redirect(WebHost + "/Exam/FrmSysMain.htm");
            Response.Redirect("http://60.217.194.226:10617/FrmSysMain.htm");
        }

        private string GetValiCode(string userId)
        {
            var md5 = EncryptionUtil.StringToMD5Hash(userId);
            return md5.Substring(0, 5) + md5.Substring(15, 5);
        }
    }
}